import request from '@/utils/request'

// 查询多时段曲线分析列表
export function listDispatchTimeIntervalCurve(query) {
  return request({
    url: '/system/dispatchTimeIntervalCurve/list',
    method: 'get',
    params: query
  })
}

// 查询多时段曲线分析详细
export function getDispatchTimeIntervalCurve(timeIntervalCurveId) {
  return request({
    url: '/system/dispatchTimeIntervalCurve/' + timeIntervalCurveId,
    method: 'get'
  })
}

// 新增多时段曲线分析
export function addDispatchTimeIntervalCurve(data) {
  return request({
    url: '/system/dispatchTimeIntervalCurve',
    method: 'post',
    data: data
  })
}

// 修改多时段曲线分析
export function updateDispatchTimeIntervalCurve(data) {
  return request({
    url: '/system/dispatchTimeIntervalCurve',
    method: 'put',
    data: data
  })
}

// 删除多时段曲线分析
export function delDispatchTimeIntervalCurve(timeIntervalCurveId) {
  return request({
    url: '/system/dispatchTimeIntervalCurve/' + timeIntervalCurveId,
    method: 'delete'
  })
}
